<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Shared.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <Style x:Key="{x:Type CheckBox}"
           TargetType="CheckBox">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CheckBox">
                    <Grid Background="Transparent">
                        <Rectangle x:Name="Rectangle"
                                   Stroke="{DynamicResource BorderBrush}"
                                   RadiusX="3"
                                   RadiusY="3"
                                   Width="16"
                                   Height="16">
                        </Rectangle>
                        <ContentPresenter />
                        <Image x:Name="Image"
                               Width="24"
                               Height="24" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked"
                                 Value="True">
                            <Setter TargetName="Image" Property="Source"
                                    Value="/NetConfigurator;component/Images/check.png"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver"
                                 Value="True">
                            <Setter TargetName="Rectangle"
                                    Property="Stroke"
                                    Value="{StaticResource ActiveBorderBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>